#ifndef WIDGET_H
#define WIDGET_H
#include<QCamera>
#include<QCameraViewfinder>
#include<QCameraImageCapture>
#include <QWidget>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();


    QCamera *m_pCamera;    //获取摄像头
    QCameraViewfinder *m_pViewfinder;  //渲染摄像头
    QCameraImageCapture *m_pImageCapture;   //获取摄像头当前帧
    void Init();
private slots:
    void exitBtnResponded();
    void cameraImageCapture(int,QImage);
    void capture();

};

#endif // WIDGET_H
